package com.sorhis.common.exception;

import lombok.Data;

@Data
public class SysException extends RuntimeException {

    private Integer code;

    public SysException(){
        super();
    }

    public SysException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public SysException(String message) {
        super(message);
        this.code = 500;
    }

}
